import request from '@/utils/request';
import { QueryProcessType } from './types';

/** 新增工序信息 */
export const addProcessApi = (data: any)=>{
    return request({
        url: '/system/workingProcedureInfo',
        method: 'post',
        data: data
    });
};

/** 查询工序信息列表 */
export const getProcessListApi = (data: any) => {
    return request({
        url: '/system/workingProcedureInfo/list',
        method: 'post',
        data: data
    });
};

/** 获取工序信息详细信息 */
export const getProcessDetailApi = (id: any) => {
    return request({
        url: `/system/workingProcedureInfo/${id}`,
        method: 'get'
    });
};

/** 修改工序信息 */
export const editProcessApi = (data: any) => {
    return request({
        url: '/system/workingProcedureInfo',
        method: 'put',
        data: data
    });
};

/** 删除工序信息 */
export const deleteProcessApi = (ids: any) => {
    return request({
        url: `/system/workingProcedureInfo/${ids}`,
        method: 'delete'
    });
};